package e2q.portal.domain.uPortal;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

/**
 * UpPersonDir entity.
 * 
 * @author MyEclipse Persistence Tools
 */

@Entity
@Table(name = "up_person_dir")
@org.hibernate.annotations.Entity(dynamicUpdate = true, dynamicInsert = true)
public class UpPersonDir implements java.io.Serializable {

	// private Department department;
	@Id
	@GeneratedValue(generator = "pk")
	@Column(name = "USER_NAME")
	@GenericGenerator(name = "pk", strategy = "assigned", parameters = { @Parameter(name = "unsaved-value", value = "any") })
	private String id;
	@Column(name = "ENCRPTD_PSWD")
	private String encrptdPswd;
	@Column(name = "LST_PSWD_CGH_DT")
	private Date lstPswdCghDt;
	@Column(name = "FIRST_NAME")
	private String firstName;
	@Column(name = "LAST_NAME")
	private String lastName;
	@Column(name = "EMAIL")
	private String email;

	// Constructors

	/** default constructor */
	public UpPersonDir() {
	}

	/** minimal constructor */
	public UpPersonDir(String id) {
		this.id = id;
	}

	/** full constructor */
	public UpPersonDir(String id, String encrptdPswd, Date lstPswdCghDt,
			String firstName, String lastName, String email) {
		this.id = id;
		this.encrptdPswd = encrptdPswd;
		this.lstPswdCghDt = lstPswdCghDt;
		this.firstName = firstName;
		this.lastName = lastName;
		this.email = email;
	}

	// Property accessors

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getEncrptdPswd() {
		return this.encrptdPswd;
	}

	public void setEncrptdPswd(String encrptdPswd) {
		this.encrptdPswd = encrptdPswd;
	}

	public Date getLstPswdCghDt() {
		return this.lstPswdCghDt;
	}

	public void setLstPswdCghDt(Date lstPswdCghDt) {
		this.lstPswdCghDt = lstPswdCghDt;
	}

	public String getFirstName() {
		return this.firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return this.lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

}